package com.shequan.activity.dao;

import java.util.List;

import com.shequan.activity.bean.pojo.Activity;
import com.shequan.shequan.bean.bo.HotsActivityBean;

public interface ActivityDAO {
	int deleteByPrimaryKey(Integer activityId);

	int insert(Activity record);

	int insertSelective(Activity record);

	Activity selectByPrimaryKey(Integer activityId);

	Activity selectActivityLatest(Integer shequanId);

	int updateByPrimaryKeySelective(Activity record);

	int updateByPrimaryKeyWithBLOBs(Activity record);

	int updateByPrimaryKey(Activity record);

	/**
	 * 通过用户id查询最新活动
	 * 
	 * @param userId
	 * @return
	 */
	Activity selectLastestActivityByUserId(int userId);

	/**
	 * 查询热门活动列表
	 * 
	 * @return
	 * @author mazg
	 * @date 2012-5-12 上午10:53:46
	 */
	List<HotsActivityBean> queryAllHotsActList();
}